# **********************
# **intellistrip.inc
# **Date Created: 4/13/2009
# **Copyright 2009 Tomorrow Tech Industries
# **Contact: RPITomorrowTech@gmail.com
# **********************

intellistrip_VERSION_BUILD=`svn info |fgrep Revision |cut '-d ' -f2`

MAKEDEPEND=makedepend
CC = gcc
CXX = g++
RM = rm -f

# Compile only, warn all, error on warning, include current directory, include shared directory
FLAGS_SHARED = -c -Wall -Werror -I. -I../shared -DNDEBUG
# No specific .c or .cpp flags right now
CCFLAGS = $(FLAGS_SHARED)
CXXFLAGS = $(FLAGS_SHARED)

# Link with library standard C++
LDFLAGS = -lstdc++

# C source files
CC_SRCS =   \

# C++ source files
CXX_SRCS = 	\
				main.cpp \
				intellistrip_serial.cpp \

# Objects includes both the C and C++ files
OBJS = $(CC_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o)
# Output executable
EXE = intellistrip

# BEGIN TARGETS

# Default
# Only target for now is the intellistrip itself
all: clean intellistrip
	
# Make sure all dependency targets are satisfied as well as all prerequisite objects
intellistrip: depend $(OBJS) 
	$(CC) $(LDFLAGS) $(OBJS) -o $(EXE)

# Compile each .c file
.c.o:
	$(CC) $(CCFLAGS) $< -o $@

# Compile each .cpp file
.cpp.o:
	$(CXX) $(CXXFLAGS) $< -o $@

clean:
# Objects, editor backup files, the exe, objects, depend Makefile backup, core dumps
	$(RM) *.o *~ $(EXE) $(OBJS) Makefile.bak core.*

dist:

# -Y: ignore cannot find stdio.h stuff
depend:
	$(MAKEDEPEND) -Y $(CCFLAGS) $(CC_SRCS) 2>/dev/null >/dev/null

# Marks these as build targets rather than files	
.PHONY: all intellistrip .cpp.o clean dist depend

# Automatically generated lines from makedepend
# DO NOT DELETE
